package com.seelyn.ddvideo.spider;

/**
 * @author ifcousing-linfeng
 * @since 2017/6/12
 */
public enum FromSiteEnum {
    QQ("腾讯"), YOUKU("优酷"), IQIYI("爱奇艺"), KUYUN("直连"), M3U8("m3u8"), MP4("MP4"), PAN27("27PAN");

    private String value;

    FromSiteEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static FromSiteEnum getEnum(String value) {
        for (FromSiteEnum typeEnum : values()) {
            if (typeEnum.getValue().contains(value)) {
                return typeEnum;
            }
        }
        return QQ;
    }

}
